//
//  LRXPayManagerCell.m
//  路人侠
//
//  Created by zhangxulong on 5/27/16.
//  Copyright © 2016 zhangxulong. All rights reserved.
//

#import "LRXPayManagerCell.h"
@interface LRXPayManagerCell()
@property (nonatomic,weak) UILabel * titleLabel;
@property (nonatomic,weak) UILabel * dealabel;
@end
@implementation LRXPayManagerCell
 -(instancetype)init
{
    self = [super init];
    CGFloat deaLabelX = MainScreenW - 120 * wScale;
    UILabel * titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(31 * wScale, 0 , 161 * wScale, self.frame.size.height)];
    UILabel * deaLabel = [[UILabel alloc]initWithFrame:CGRectMake(deaLabelX, 0, 70 * wScale, self.frame.size.height)];
    titleLabel.textAlignment =  NSTextAlignmentLeft;
    deaLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.font = [UIFont systemFontOfSize:28 * hScale];
    deaLabel.font = [UIFont systemFontOfSize:28 * hScale];
    deaLabel.textColor = mainColor;
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    self.titleLabel = titleLabel;
    self.dealabel = deaLabel;
    
    [self addSubview:titleLabel];
    [self addSubview:deaLabel];
    return self;
}
- (void)layoutWithBlock:(pushNewViewBlock)viewBlock
{
    self.titleLabel.text = self.cellTitle;
    self.dealabel.text = self.detailTitle;
    self.viewBlock = [viewBlock copy];
}
@end
